﻿@using CNav.Support
@model CNav.Domain.Admin.FormDesign

@{
    ViewBag.Title = "Form Design - Delete";
}
@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <div id="formDesign">
        <h3>Are you sure you want to delete this?</h3>
        <ol>
         <li>@Html.Label("Name")
                @Html.DisplayFor(model => model.FormName)
            </li>
            <li>@Html.Label(" Control Type")
                @Html.DisplayFor(model => model.ControlType)

            </li>
            <li>@Html.Label("Control Name")
                @Html.DisplayFor(model => model.ControlName)
            </li>
            <li>@Html.Label("Label / Caption")
                @Html.DisplayFor(model => model.LabelText)
            </li>
            <li>@Html.Label("Display Order")
                @Html.DisplayFor(model => model.DisplayOrder)
            </li>
            <li>@Html.Label("Data List")
                @Html.DisplayFor(model => model.DataSourceName)
            </li>

            <li>
                <label>&nbsp;</label>
                <input type="submit" value="Delete" />
                <input type="button" value="Cancel" id="cancelButton" />
            </li>

        </ol>
    </div>
}

<script type="text/javascript">
    $(document).ready(function () {

        var cc = new CaseCentre();
        cc.BindCancel('#cancelButton', '@Url.Content("~/FormDesign/")' + '@Session[Constant.FormId]');
    });
</script>
